package org.vergil.core.designpattern.handler;

/**
 * Created by vergil on 17-3-19.
 */
public class App {

    public static void main(String[] args){
        AbstractHandler handler1 = new ConcreteHandlerA();
        AbstractHandler handler2 = new ConcreteHandlerB();
        AbstractHandler handler3 = new ConcreteHandlerC();

        handler1.setHandler(handler2);
        handler2.setHandler(handler3);

        handler1.handleRequest("B");
    }
}
